<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'knowledge-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model,'title',array('class'=>'span5','maxlength'=>45)); ?>

	
	<?php $this->widget('ext.ckeditor.CKEditorWidget',array(
			  "model"=>$model,                 # Data-Model
			  "attribute"=>'description',      # Attribute in the Data-Model
			  "defaultValue"=>"Test Text",     # Optional
			 
			  "config" => array(
				  "height"=>"400px",
				  "width"=>"96%",
				  //"toolbar"=>"basic",
				  ),
			  "ckEditor"=>Yii::app()->basePath."/../ckeditor/ckeditor.php",                             
			  "ckBasePath"=>Yii::app()->baseUrl."/ckeditor/",                   
			  ) 
		  );
		?>
	

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
